package com.deepexps.security.controller;


import com.deepexps.security.commen.ResponseResult;
import com.deepexps.security.service.SysUserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author moyi
 * @since 2021-11-11 13:10:55
 */
@RestController
@RequestMapping("/sys-user")
@Api
public class SysUserController extends BaseController {


    @Autowired
    SysUserService userService;

    @GetMapping("getList")
    @ApiOperation("获取用户列表")
    public ResponseResult getUserList() {
        return ResponseResult.getSuccess(userService.list());
    }

}
